package thread.test_1;

public class Test6 {
    public static void main(String[] args) {
        // main是被JVM虚拟机调用
        // 分配一条线程,叫做main线程
        RunImpl run = new RunImpl();
        new Thread(run,"金星").start();
    }
}
// 线程的第二种实现方式
class RunImpl implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + "打👊的第" + i + "天");
        }
    }
}
